package com.dycx.cms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dycx.cms.entity.ArticleKeywordDO;
import com.dycx.cms.vo.ArticleKeywordVO;
import com.dycx.cms.dto.ArticleKeywordDTO;


/**
 * 文章关键字(ArticleKeyword)表服务接口
 *
 * @author wuzongbin
 * @since 2023-05-24 15:45:22
 */
public interface ArticleKeywordService extends IService<ArticleKeywordDO> {
    /**
     * 通过ID查询单条数据
     */
    ArticleKeywordVO getInfo(Integer id);

    /**
     * 分页
     */
    Page<ArticleKeywordVO> getPage(ArticleKeywordDTO dto);

    /**
     * 添加
     */
    Boolean add(Integer articleId, String keywords);

    /**
     * 更新
     */
    Boolean edit(ArticleKeywordDTO dto);

    /**
     * 删除
     */
    Boolean delete(Integer id);

    /**
     * 获取最大排序
     */
    Integer getMaxSort();

}

